<div class="popup_body">
    <div class="ui_table">
        <form method="post">
            <table cellpadding="0" cellspacing="0">
                <tr>
                    <td width="70" align="right">箱号：</td>
                    <td><input type="text" class="text easyui-validatebox" required="true" name="updateBoxNum" value="${entity.boxNum}"></td>
                    <td width="70" align="right">类型：</td>
                    <td>
                        <input type="text" class="text" value="<#if entity.activeFlag == 1>启用<#else>禁用</#if>">
                    </td>
                </tr>
                <tr>
                    <td width="70" align="right">箱体状态：</td>
                    <td><input type="text" class="text easyui-validatebox" value="${(entity.boxStatusName)!''}" ></td>
                    <td width="70" align="right">电池ID：</td>
                    <td><input type="text" class="text easyui-validatebox" value="${(entity.batteryId)!''}" ></td>
                </tr>
                <tr>
                    <td width="70" align="right">电池电量：</td>
                    <td><input type="text" class="text easyui-validatebox" value="${(entity.batteryVolume)!''}" ></td>
                    <td width="70" align="right">充电阶段：</td>
                    <td><input type="text" class="text" value="<#if entity.chargeStage??><#if entity.chargeStage==4>已充满<#elseif entity.chargeStage==5>过温保护<#elseif entity.chargeStage==6>欠压保护<#else>充电中</#if></#if>"></td>
                </tr>
                <tr>
                    <td align="right">刷新时间：</td>
                    <td><input type="text" class="text easyui-validatebox" maxlength="40" name="openTime"
                               value="<#if entity.refreshTime??>${entity.refreshTime?string('yyyy-MM-dd HH:mm:ss')}</#if>"/></td>
                </tr>
            </table>
        </form>
    </div>
</div>
<div class="popup_btn">
    <button class="btn btn_border close">关闭</button>
</div>
<script>

    (function() {
        var pid = '${pid}',
                win = $('#' + pid),
                form = win.find('form');

        win.find('button.close').click(function() {
            win.window('close');
        });
    })();
</script>
